package com.by.mqsender.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ConditionalOnProperty(name = "by.mq.enabled", havingValue = "true")
@ConfigurationProperties(prefix = "by.mq")
public class ByMqProperties {

    private String endpoint;

    private String instanceName;

    private String instancePwd;

    private Set<String> topicProducers;

}
